package com.lemontree.spring.aoptalk;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class ArroundAop implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        Object[] o = invocation.getArguments();
        String s = (String) o[0];
        System.out.println("this is around..."+s);
        Object result = invocation.proceed();
        System.out.println("this is  ....");
        return result;
    }
}
